Skip to main content

ARDK for Android/com.nianticlabs.ardk.wps/WPSSession/configure

configure

[androidJvm]
fun configure(config: WPSConfig)

Configures the session with the specified settings.

Attention: This method must be called while the session is stopped, or else configuration will fail. In that case, while this function returns without throwing, configuration will still fail asynchronously. Use featureStatus to check that configuration has not failed.

Note: The WPS settings should be kept at their default value in almost all instances.

Parameters​

androidJvm

configAn object that defines this session's behavior. Only settings that differ from the defaults will be applied.

See also​

WPSConfig

Throws​

ARDKStatusException with code ARDKStatus.invalidArgument if the configuration is invalid. Check ARDK's C logs for more information.